<template>
  <div id="app">
      <div class="header">
        <go-back></go-back>
          <to-search>去搜索</to-search>
    <!-- <i v-if="$route.meta.goBack" class="iconfont icon-fanhui" @click="$router.go(-1)"></i> -->
      <header> {{$route.meta.title}}</header>
    </div>
    <!-- 路由出口 -->
   <router-view class="con"></router-view>
  </div>
</template>
<script>
export default {
  
}
</script>
<style>
.header{
  width: 100vw;
  height: 0.8rem;
  position: fixed;
  left: 0;
  top: 0;
  background: pink;

}
.con{
  padding-top: 0.8rem;
}
.header .icon-fanhui{
  position: absolute;
  left: 0.2rem;
  line-height: 0.8rem;
  color: #fff;
  top: 0;
}
.header .van-icon{
   position: absolute;
  right: 0.2rem;
  line-height: 0.8rem;
  color: #fff;
  top: 0;
}
.header header{
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 0.8rem;
  color: #fff;

}
title{
  font-size: 0.5rem;
  color: red;
}
</style>
